﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.WaterPurchase
{
    public class PresenterReadSecondStep
    {
        ISecondStepReadWaterPurchase view;

        public PresenterReadSecondStep(ISecondStepReadWaterPurchase view)
        {
            this.view = view;
        }

        public void UpdateData()
        {
            view.Amount = view.WaterPurchaseToRead.Amount.ToString();
            view.Courtesy = view.WaterPurchaseToRead.Courtesy;
            view.DatePurchase = view.WaterPurchaseToRead.DatePurchase;
            view.TotalPrice = view.WaterPurchaseToRead.TotalPrice.ToString();
        }
    }
}
